package com.jsyl.entity.core;

import java.io.Serializable;
import java.math.BigDecimal;

import com.jsyl.entity.common.BaseEntity;
import com.jsyl.entity.common.orm.annotation.Column;
import com.jsyl.entity.common.orm.annotation.Entity;
import com.jsyl.entity.common.orm.annotation.Id;
/**
 * 交易 流水  实体
 * @author song
 *<p>平台上的每一笔交易都记录在流水表中</p>
 */
@Entity(table = "NF_TRANSACTION_FLOW")
public class TransactionFlow extends BaseEntity implements Serializable {

	private static final long serialVersionUID = -3822837536865641022L;
	
	     @Id
		 @Column("ID")
		 private Integer id;
		 
		/* 用户ID*/
		 @Column("USER_ID")
		 private  Integer userId;
		 
		/* 账户总额 【包含 可用金额、冻结金额、以收利息】*/
		 @Column("TOTAL")
		 private BigDecimal total;
		 
		/* 操作金额*/
		 @Column("MONEY")
		 private BigDecimal money;
		 
		 /*可用金额*/
		 @Column("USE_MONEY")
		 private BigDecimal useMoney;
		 
		 /* 冻结金额 */
		 @Column("NO_USE_MONEY")
		 private BigDecimal noUseMoney;
		 
		 /*待收总额 投资的标的后的 【本金+利息】*/
		 @Column("COLLECTION")
		 private BigDecimal collection;
		 
		/*备注*/
		 @Column("REMARK")
		 private String remark;
		  
		 /* 用户ID*/
		 @Column("TO_USER_ID")
		 private  Integer toUserId;
		 
		 /*备注*/
		 @Column("ADDTIME")
		 private String addTime;
		 
		/* 充值、用户提现、借款还款、投资成功冻结、借款入账、扣除【手续费】'*/
		 @Column("TYPE")
		 private Integer type;

		@Override
		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public Integer getUserId() {
			return userId;
		}

		public void setUserId(Integer userId) {
			this.userId = userId;
		}

		public BigDecimal getTotal() {
			return total;
		}

		public void setTotal(BigDecimal total) {
			this.total = total;
		}

		public BigDecimal getMoney() {
			return money;
		}

		public void setMoney(BigDecimal money) {
			this.money = money;
		}

		public BigDecimal getUseMoney() {
			return useMoney;
		}

		public void setUseMoney(BigDecimal useMoney) {
			this.useMoney = useMoney;
		}

		public BigDecimal getNoUseMoney() {
			return noUseMoney;
		}

		public void setNoUseMoney(BigDecimal noUseMoney) {
			this.noUseMoney = noUseMoney;
		}

		public BigDecimal getCollection() {
			return collection;
		}

		public void setCollection(BigDecimal collection) {
			this.collection = collection;
		}

		public String getRemark() {
			return remark;
		}

		public void setRemark(String remark) {
			this.remark = remark;
		}

		public Integer getToUserId() {
			return toUserId;
		}

		public void setToUserId(Integer toUserId) {
			this.toUserId = toUserId;
		}

		public String getAddTime() {
			return addTime;
		}

		public void setAddTime(String addTime) {
			this.addTime = addTime;
		}

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		
		

}
